package com.friend.joey.applicationfriend.Classes;

import static android.icu.text.RelativeDateTimeFormatter.Direction.THIS;

/**
 * Created by Joey on 2017/5/31.
 */

public class AlertMessage {
    public static final int TYPE_FORGET = 0;
    public static final int TYPE_LOCATION =1;
    public static final int TYPE_TALKTOCOMPUTE=2;
    public static final int TYPE_SEARCH=3;
    public static final int TYPE_TALKTOCHILD=4;
    public static final int TYPE_MAP=5;
    private int id;
    private String title;
    private String content;
    private String time;
    private int type;
    public AlertMessage(int type,String title,String content){
        this.type=type;
        this.title=title;
        this.content=content;
        TimeDeal timeDeal=new TimeDeal(TimeDeal.INITDATE);
        this.time=timeDeal.GetAlertTimeString();
        this.id=(int)System.currentTimeMillis();
    }
    public AlertMessage(int type,String title,String content,String addtime){
        this.type=type;
        this.title=title;
        this.content=content;
        this.time=addtime;
        this.id=(int)System.currentTimeMillis();
    }
    public AlertMessage(int id,int type,String title,String content,String addtime){
        this.id=id;
        this.type=type;
        this.title=title;
        this.content=content;
        this.time=addtime;
    }
    public String getTitle(){
        return title;
    }
    public String getContent(){
        return content;
    }
    public String getTime(){
        return time;
    }
    public int getType(){
        return type;
    }
    public int getId(){
        return id;
    }
}
